package com.ow.dva.module.duty.service.impl;

import com.ow.dva.module.duty.entity.Duty;
import com.ow.dva.module.duty.mapper.DutyMapper;
import com.ow.dva.module.duty.service.DutyService;
import com.ow.dva.module.base.service.impl.DvaServiceImpl;
import com.ow.dva.config.annotation.DvaCache5M;
import org.springframework.stereotype.Service;
import com.ow.dva.module.base.entity.param.DvaPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 值班分配 服务实现类
 * </p>
 *
 * @author jinagyanpeng
 * @since 2020-04-09
 * @version V1.0
 */
@Service
public class DutyServiceImpl extends DvaServiceImpl<DutyMapper, Duty> implements DutyService {

    @Override
    public DvaPage<Duty> page(DvaPage<Duty> page, Map<String, Object> param) {

        return baseMapper.page(page,param);
    }

    @Override
    public List<Duty> getByRoadId(String roadId) {
        return baseMapper.getByRoadId(roadId);
    }

    @Override
    public Duty getByRoad(Duty duty) {
        return baseMapper.getByRoad(duty);
    }

    @Override
    public Integer removeByRoadId(Duty duty) {
        return baseMapper.removeByRoadId(duty);
    }
}
